/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.dto.contract;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.common.core.model.BaseEntity;
import com.fuyao.cloud.common.data.mybatis.SearchCondition;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * 合同管理
 *
 * @author liyue
 * @date 2021-11-18 18:45:12
 */
@Data
@ApiModel(value = "合同管理")
public class AssetContractDTO {

    private static final long serialVersionUID = 1L;

    @SearchCondition
    @ApiModelProperty(value="预算ID")
    private Long budgetId;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="预算编号")
    private String budgetNumber;

    @SearchCondition
    @ApiModelProperty(value="状态：0：草稿，1：审批中， 3：已归档  4：合同失效 5：合同作废")
    private String status;

    @SearchCondition
    @ApiModelProperty(value="类型（CONTRACT：合同、BILL：发票）")
    private String type;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="名称")
    private String name;

    @SearchCondition
    @ApiModelProperty(value="合同类型（ASSET：资产合同、HOUSE：房屋）")
    private String contractType;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="编号（编号用户填了就按他的不填就自增长）")
    private String contractId;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="签订地点")
    private String contractSignplace;

    @SearchCondition(op = SearchOp.BETWEEN)
    @ApiModelProperty(value="签订时间")
    private List<LocalDate> contractSigndate;

    @SearchCondition(op = SearchOp.BETWEEN)
    @ApiModelProperty(value="生效时间")
    private List<LocalDate> effectiveDate;

    @SearchCondition(op = SearchOp.BETWEEN)
    @ApiModelProperty(value="结束时间")
    private List<LocalDate> expirationDate;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="条款")
    private String terms;

    @SearchCondition
    @ApiModelProperty(value="金额")
    private BigDecimal amount;

    @SearchCondition
    @ApiModelProperty(value="签订人员ID")
    private Long responsemanId;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="签订人员名称")
    private String responsemanName;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="备注")
    private String remarks;

    @SearchCondition
    @ApiModelProperty(value="供应商ID")
    private Long supplierId;

    @SearchCondition(op = SearchOp.LIKE)
    @ApiModelProperty(value="供应商名称")
    private String supplierName;

    @SearchCondition
	@ApiModelProperty(value="年份")
	private Integer year;

    @SearchCondition
	@ApiModelProperty(value="月份")
	private Integer month;

}
